<%--
  Created by IntelliJ IDEA.
  User: zhangye
  Date: 2020-05-09
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<html>
<head>
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.2/js/bootstrapValidator.min.js"></script>
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.2/css/bootstrapValidator.min.css"/>
    <link rel="stylesheet" href="css/bg.css">
    <script src="js/uploadValidator.js"></script>
    <title>UploadBook</title>
</head>
<body>
<div class="container">
    <form name="fileUpload" action="/modifyBook" method="post" enctype="multipart/form-data" id="form1">
        <div class="form row">
            <div class="form-horizontal col-md-offset-3" id="login_form">
                <h3 class="form-title">上架图书</h3>
                <div class="col-md-9">
                    <input type="hidden" value="${book.bookId}" name="bookId">
                    <div class="form-group">
                        <label>图书名称</label>
                        <input class="form-control" type="text"  id="bookName" value="${book.bookName}" name="bookName"autofocus="autofocus" />
                        <span></span>
                    </div>
                    <div class="form-group">
                        <label>图书作者</label>
                        <input class="form-control required" type="text" value="${book.bookAuthor}" id="author" name="author" autofocus="autofocus"  />
                        <span></span>
                    </div>
                    <div class="form-group">
                        <label>图书出版社</label>
                        <input class="form-control required" type="text" value="${book.pubs}" id="pubs" name="pubs" autofocus="autofocus" />
                        <span></span>
                    </div>
                    <div class="form-group">
                        <label>图书数量</label>
                        <input class="form-control required" type="text"  value="${book.bookCount}" id="count" name="count" autofocus="autofocus" />
                    </div>
                    <div class="form-group">
                        <label>图书单价</label>
                        <input class="form-control required" type="text" value="${book.price}" id="price" name="price" autofocus="autofocus"/>
                        <span></span>
                    </div>
                    <div class="from-group">
                        <label>图书种类</label>
                        <select class="form-control form-control-lg" name="classifyName" id="classifyName">
                            <option value="历史" selected="selected">历史</option>
                            <option value="小说">小说</option>
                            <option value="成功励志">成功励志</option>
                            <option value="文学">文学</option>
                            <option value="管理">管理</option>
                            <option value="经济">经济</option>
                            <option value="艺术">艺术</option>
                        </select>
                        <span></span>
                    </div>
                    <div class="from-group">
                        <label>书架</label>
                        <select class="form-control form-control-lg" name="bookShelf" id="bookShelf">
                            <option value="1号书架" selected="selected">1号书架</option>
                            <option value="1号书架">2号书架</option>
                            <option value="3号书架">3号书架</option>
                            <option value="4号书架">4号书架</option>
                            <option value="5号书架">5号书架</option>
                            <option value="6号书架">6号书架</option>
                        </select>
                        <span></span>
                    </div>
                    <div class="form-group col-md-offset-9">
                        <button type="submit" class="btn btn-success pull-right" name="submit">上传</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
</html>
